package com.yydream.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yydream.common.utils.R;
import com.yydream.dto.*;
import com.yydream.entity.SysRoleEntity;

public interface SysRoleService extends IService<SysRoleEntity> {


    R queryById(Long id);

    R listPage(SysRolePageDTO req);

    R insert(SysRoleDTO sysUser);

    R update(SysRoleDTO sysUser);

    R deleteById(Long[] ids);

    R roleRelationMenu(RoleRelationMenuDTO roleRelationMenuDTO);

    R roleRelationMenuByRoleId(Integer roleId);

    R roleRelationUser(RoleRelationUserDTO roleRelationUserDTO);

    R roleRelationUserByRoleId(Integer roleId);
}
